using DataDynamics.ActiveReports;
using DataDynamics.ActiveReports.Export.Xls;
using SM.core;
using SS;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Windows.Forms;
using TVSGPP.func;
namespace TVSBH.func
{
	public class frmBookSideEffects : Form
	{
		private Func objFunc = new Func();
		private DataTable objTable;
		private DataTable objTableBarcode = new DataTable();
		private Bill objBill = new Bill();
		private string sqlCon = "";
		private string currID = "0";
		private IContainer components = null;
		private DataGridView dgvProduct;
		private Button btnClose;
		private Button btnAdd;
		private System.Windows.Forms.Label label1;
		private Button btnUpdate;
		private Button btnPrint;
		private Button btnExportToExcel;
		private DataGridViewTextBoxColumn ID;
		private DataGridViewTextBoxColumn Name1;
		private DataGridViewTextBoxColumn Address;
		private DataGridViewTextBoxColumn Diagnosis;
		private DataGridViewTextBoxColumn DrugsUsed;
		private DataGridViewTextBoxColumn DateStart;
		private DataGridViewTextBoxColumn Description;
		private DataGridViewTextBoxColumn Measures;
		private DataGridViewTextBoxColumn Conclution;
		private Button btnDel;
		public frmBookSideEffects()
		{
			this.InitializeComponent();
			this.sqlCon = this.objFunc.strConnectionString;
		}
		private void frmInput_Load(object sender, EventArgs e)
		{
			this.dgvProduct.AutoGenerateColumns = false;
			this.getInfomation();
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void frmInput_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.F4)
			{
				this.btnAdd.PerformClick();
			}
			else
			{
				if (e.KeyCode == Keys.F5)
				{
					this.btnUpdate.PerformClick();
				}
				else
				{
					if (e.KeyCode == Keys.F7)
					{
						this.btnPrint.PerformClick();
					}
					else
					{
						if (e.KeyCode == Keys.Escape)
						{
							base.Close();
						}
					}
				}
			}
		}
		public void getInfomation()
		{
			try
			{
				DataTable dataTable = new DataTable();
				DataColumn column = new DataColumn("ID", typeof(string));
				DataColumn column2 = new DataColumn("Name", typeof(string));
				DataColumn column3 = new DataColumn("Address", typeof(string));
				DataColumn column4 = new DataColumn("Diagnosis", typeof(string));
				DataColumn column5 = new DataColumn("DrugsUsed", typeof(string));
				DataColumn column6 = new DataColumn("DateStart", typeof(DateTime));
				DataColumn column7 = new DataColumn("Description", typeof(string));
				DataColumn column8 = new DataColumn("Measures", typeof(string));
				DataColumn column9 = new DataColumn("Conclution", typeof(string));
				dataTable.Columns.Add(column);
				dataTable.Columns.Add(column2);
				dataTable.Columns.Add(column3);
				dataTable.Columns.Add(column4);
				dataTable.Columns.Add(column5);
				dataTable.Columns.Add(column6);
				dataTable.Columns.Add(column7);
				dataTable.Columns.Add(column8);
				dataTable.Columns.Add(column9);
				SqlConnection sqlConnection = new SqlConnection(this.sqlCon);
				sqlConnection.Open();
				SqlCommand sqlCommand = sqlConnection.CreateCommand();
				sqlCommand.CommandText = "SELECT * FROM [TabSideEffects] ORDER BY [ID] DESC";
				SqlDataReader sqlDataReader = sqlCommand.ExecuteReader();
				while (sqlDataReader.Read())
				{
					dataTable.Rows.Add(new object[]
					{
						sqlDataReader["ID"].ToString(),
						sqlDataReader["Name"].ToString(),
						sqlDataReader["Address"].ToString(),
						sqlDataReader["Diagnosis"].ToString(),
						sqlDataReader["DrugsUsed"].ToString(),
						sqlDataReader["DateStart"].ToString(),
						sqlDataReader["Description"].ToString(),
						sqlDataReader["Measures"].ToString(),
						sqlDataReader["Conclution"].ToString()
					});
				}
				sqlDataReader.Close();
				sqlConnection.Close();
				sqlConnection.Dispose();
				this.objTable = dataTable;
				this.dgvProduct.DataSource = this.objTable;
			}
			catch
			{
				this.objTable = null;
				this.dgvProduct.DataSource = this.objTable;
			}
		}
		private void btnSearch_Click(object sender, EventArgs e)
		{
			this.getInfomation();
		}
		private void resetDataGridView()
		{
			this.objTable = null;
			this.dgvProduct.DataSource = this.objTable;
		}
		private void btnEdit_Click(object sender, EventArgs e)
		{
			new frmAddSideEffects
			{
				ID = "0"
			}.ShowDialog();
			this.getInfomation();
		}
		private void dgvProduct_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
		{
			new frmAddSideEffects
			{
				ID = this.dgvProduct.Rows[e.RowIndex].Cells["ID"].Value.ToString()
			}.ShowDialog();
		}
		private void btnUpdate_Click(object sender, EventArgs e)
		{
			this.getInfomation();
		}
		private void btnPrint_Click(object sender, EventArgs e)
		{
			frmBookSideEffectsView frmBookSideEffectsView = new frmBookSideEffectsView();
			frmBookSideEffectsPrint.objTable = this.objTable;
			frmBookSideEffectsView.ShowDialog();
		}
		private void btnExportToExcel_Click(object sender, EventArgs e)
		{
			try
			{
				frmBookSideEffectsPrint.objTable = new DataTable();
				frmBookSideEffectsPrint.objTable = this.objTable;
				ActiveReport3 activeReport = new frmBookSideEffectsPrint();
				activeReport.Run();
				XlsExport xlsExport = new XlsExport();
				SaveFileDialog saveFileDialog = new SaveFileDialog();
				saveFileDialog.ShowDialog();
				string text = saveFileDialog.FileName;
				if (text != "")
				{
					if (!text.ToUpper().Contains(".XLS"))
					{
						text += ".xls";
					}
					xlsExport.Export(activeReport.Document, text);
					MessageBox.Show("Hệ thống đã hoàn thành việc xuất dữ liệu ra file Excel", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					MessageBox.Show("Bạn chưa chọn đường dẫn và tên file cần xuất!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				}
			}
			catch
			{
			}
		}
		private void dgvProduct_CellEnter(object sender, DataGridViewCellEventArgs e)
		{
			this.currID = this.dgvProduct.Rows[e.RowIndex].Cells["ID"].Value.ToString();
		}
		public void delItem()
		{
			try
			{
				if (this.currID != "0")
				{
					if (MessageBox.Show("Bạn có chắc chắn muốn xoá mục được chọn không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
					{
						SqlConnection sqlConnection = new SqlConnection(this.sqlCon);
						sqlConnection.Open();
						SqlCommand sqlCommand = sqlConnection.CreateCommand();
						sqlCommand.CommandText = "DELETE [TabSideEffects] WHERE [ID] = " + this.currID;
						sqlCommand.ExecuteNonQuery();
						sqlConnection.Close();
						sqlConnection.Dispose();
						this.getInfomation();
					}
				}
			}
			catch
			{
			}
		}
		private void btnDel_Click(object sender, EventArgs e)
		{
			this.delItem();
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle6 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle7 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle8 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle9 = new DataGridViewCellStyle();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmBookSideEffects));
			this.dgvProduct = new DataGridView();
			this.ID = new DataGridViewTextBoxColumn();
			this.Name1 = new DataGridViewTextBoxColumn();
			this.Address = new DataGridViewTextBoxColumn();
			this.Diagnosis = new DataGridViewTextBoxColumn();
			this.DrugsUsed = new DataGridViewTextBoxColumn();
			this.DateStart = new DataGridViewTextBoxColumn();
			this.Description = new DataGridViewTextBoxColumn();
			this.Measures = new DataGridViewTextBoxColumn();
			this.Conclution = new DataGridViewTextBoxColumn();
			this.btnClose = new Button();
			this.btnAdd = new Button();
			this.label1 = new System.Windows.Forms.Label();
			this.btnUpdate = new Button();
			this.btnPrint = new Button();
			this.btnExportToExcel = new Button();
			this.btnDel = new Button();
			((ISupportInitialize)this.dgvProduct).BeginInit();
			base.SuspendLayout();
			this.dgvProduct.AllowUserToAddRows = false;
			this.dgvProduct.AllowUserToDeleteRows = false;
			this.dgvProduct.AllowUserToOrderColumns = true;
			this.dgvProduct.AllowUserToResizeColumns = false;
			this.dgvProduct.AllowUserToResizeRows = false;
			dataGridViewCellStyle.BackColor = Color.FromArgb(192, 255, 255);
			dataGridViewCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle;
			this.dgvProduct.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.dgvProduct.BackgroundColor = Color.White;
			this.dgvProduct.BorderStyle = BorderStyle.Fixed3D;
			this.dgvProduct.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.dgvProduct.Columns.AddRange(new DataGridViewColumn[]
			{
				this.ID,
				this.Name1,
				this.Address,
				this.Diagnosis,
				this.DrugsUsed,
				this.DateStart,
				this.Description,
				this.Measures,
				this.Conclution
			});
			this.dgvProduct.Cursor = Cursors.Hand;
			this.dgvProduct.EnableHeadersVisualStyles = false;
			this.dgvProduct.Location = new System.Drawing.Point(7, 36);
			this.dgvProduct.MultiSelect = false;
			this.dgvProduct.Name = "dgvProduct";
			this.dgvProduct.ReadOnly = true;
			this.dgvProduct.RowHeadersVisible = false;
			this.dgvProduct.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvProduct.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvProduct.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvProduct.Size = new Size(886, 524);
			this.dgvProduct.TabIndex = 0;
			this.dgvProduct.CellDoubleClick += new DataGridViewCellEventHandler(this.dgvProduct_CellDoubleClick);
			this.dgvProduct.CellEnter += new DataGridViewCellEventHandler(this.dgvProduct_CellEnter);
			this.ID.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.ID.DataPropertyName = "ID";
			this.ID.HeaderText = "ID";
			this.ID.MinimumWidth = 50;
			this.ID.Name = "ID";
			this.ID.ReadOnly = true;
			this.ID.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.ID.Visible = false;
			this.ID.Width = 50;
			this.Name1.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Name1.DataPropertyName = "Name";
			dataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleLeft;
			this.Name1.DefaultCellStyle = dataGridViewCellStyle2;
			this.Name1.HeaderText = "Tên bệnh nhân";
			this.Name1.MinimumWidth = 150;
			this.Name1.Name = "Name1";
			this.Name1.ReadOnly = true;
			this.Name1.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Name1.Width = 150;
			this.Address.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Address.DataPropertyName = "Address";
			dataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft;
			this.Address.DefaultCellStyle = dataGridViewCellStyle3;
			this.Address.HeaderText = "Địa chỉ";
			this.Address.MinimumWidth = 200;
			this.Address.Name = "Address";
			this.Address.ReadOnly = true;
			this.Address.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Address.Width = 200;
			this.Diagnosis.DataPropertyName = "Diagnosis";
			dataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleLeft;
			dataGridViewCellStyle4.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			dataGridViewCellStyle4.ForeColor = Color.Black;
			this.Diagnosis.DefaultCellStyle = dataGridViewCellStyle4;
			this.Diagnosis.HeaderText = "Chẩn đoán";
			this.Diagnosis.MinimumWidth = 150;
			this.Diagnosis.Name = "Diagnosis";
			this.Diagnosis.ReadOnly = true;
			this.Diagnosis.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Diagnosis.Width = 150;
			this.DrugsUsed.DataPropertyName = "DrugsUsed";
			dataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleLeft;
			dataGridViewCellStyle5.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			dataGridViewCellStyle5.ForeColor = Color.Black;
			this.DrugsUsed.DefaultCellStyle = dataGridViewCellStyle5;
			this.DrugsUsed.HeaderText = "Thuốc đã dùng";
			this.DrugsUsed.MinimumWidth = 130;
			this.DrugsUsed.Name = "DrugsUsed";
			this.DrugsUsed.ReadOnly = true;
			this.DrugsUsed.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.DrugsUsed.Width = 130;
			this.DateStart.DataPropertyName = "DateStart";
			dataGridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleLeft;
			dataGridViewCellStyle6.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			dataGridViewCellStyle6.ForeColor = Color.Black;
			dataGridViewCellStyle6.Format = "D";
			dataGridViewCellStyle6.NullValue = null;
			this.DateStart.DefaultCellStyle = dataGridViewCellStyle6;
			this.DateStart.HeaderText = "Ngày XH";
			this.DateStart.MinimumWidth = 80;
			this.DateStart.Name = "DateStart";
			this.DateStart.ReadOnly = true;
			this.DateStart.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.DateStart.Width = 80;
			this.Description.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.Description.DataPropertyName = "Description";
			dataGridViewCellStyle7.Alignment = DataGridViewContentAlignment.MiddleLeft;
			dataGridViewCellStyle7.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
			dataGridViewCellStyle7.ForeColor = Color.Black;
			this.Description.DefaultCellStyle = dataGridViewCellStyle7;
			this.Description.HeaderText = "Mô tả";
			this.Description.MinimumWidth = 100;
			this.Description.Name = "Description";
			this.Description.ReadOnly = true;
			this.Description.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Measures.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Measures.DataPropertyName = "Measures";
			dataGridViewCellStyle8.Alignment = DataGridViewContentAlignment.MiddleLeft;
			this.Measures.DefaultCellStyle = dataGridViewCellStyle8;
			this.Measures.HeaderText = "Biện pháp";
			this.Measures.MinimumWidth = 120;
			this.Measures.Name = "Measures";
			this.Measures.ReadOnly = true;
			this.Measures.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Measures.Width = 120;
			this.Conclution.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Conclution.DataPropertyName = "Conclution";
			dataGridViewCellStyle9.Alignment = DataGridViewContentAlignment.MiddleLeft;
			this.Conclution.DefaultCellStyle = dataGridViewCellStyle9;
			this.Conclution.HeaderText = "Kết luận";
			this.Conclution.MinimumWidth = 200;
			this.Conclution.Name = "Conclution";
			this.Conclution.ReadOnly = true;
			this.Conclution.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Conclution.Width = 200;
			this.btnClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnClose.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnClose.FlatStyle = FlatStyle.Flat;
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new System.Drawing.Point(793, 567);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(100, 26);
			this.btnClose.TabIndex = 6;
			this.btnClose.Text = "Thoát [ ESC ]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.btnAdd.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnAdd.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnAdd.FlatStyle = FlatStyle.Flat;
			this.btnAdd.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnAdd.Location = new System.Drawing.Point(7, 567);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new Size(105, 26);
			this.btnAdd.TabIndex = 1;
			this.btnAdd.Text = "Thêm mới [ F4 ]";
			this.btnAdd.UseVisualStyleBackColor = true;
			this.btnAdd.Click += new EventHandler(this.btnEdit_Click);
			this.label1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.label1.BackColor = SystemColors.ControlLight;
			this.label1.Font = new Font("Arial", 10f, FontStyle.Bold);
			this.label1.Location = new System.Drawing.Point(7, 13);
			this.label1.Name = "label1";
			this.label1.Size = new Size(886, 26);
			this.label1.TabIndex = 58;
			this.label1.Text = "SỔ THEO DÕI TÁC DỤNG PHỤ CỦA THUỐC DO KHÁCH HÀNG PHẢN ÁNH\r\n";
			this.label1.TextAlign = ContentAlignment.MiddleCenter;
			this.btnUpdate.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnUpdate.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnUpdate.FlatStyle = FlatStyle.Flat;
			this.btnUpdate.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnUpdate.Location = new System.Drawing.Point(114, 567);
			this.btnUpdate.Name = "btnUpdate";
			this.btnUpdate.Size = new Size(98, 26);
			this.btnUpdate.TabIndex = 2;
			this.btnUpdate.Text = "Cập nhật [ F5 ]";
			this.btnUpdate.UseVisualStyleBackColor = true;
			this.btnUpdate.Click += new EventHandler(this.btnUpdate_Click);
			this.btnPrint.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnPrint.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnPrint.FlatStyle = FlatStyle.Flat;
			this.btnPrint.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnPrint.Location = new System.Drawing.Point(214, 567);
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.Size = new Size(109, 26);
			this.btnPrint.TabIndex = 3;
			this.btnPrint.Text = "In báo cáo [ F7 ]";
			this.btnPrint.UseVisualStyleBackColor = true;
			this.btnPrint.Click += new EventHandler(this.btnPrint_Click);
			this.btnExportToExcel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnExportToExcel.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnExportToExcel.FlatStyle = FlatStyle.Flat;
			this.btnExportToExcel.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnExportToExcel.Location = new System.Drawing.Point(325, 567);
			this.btnExportToExcel.Name = "btnExportToExcel";
			this.btnExportToExcel.Size = new Size(102, 26);
			this.btnExportToExcel.TabIndex = 4;
			this.btnExportToExcel.Text = "Xuất file Excel";
			this.btnExportToExcel.UseVisualStyleBackColor = true;
			this.btnExportToExcel.Click += new EventHandler(this.btnExportToExcel_Click);
			this.btnDel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnDel.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnDel.FlatStyle = FlatStyle.Flat;
			this.btnDel.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnDel.Location = new System.Drawing.Point(429, 567);
			this.btnDel.Name = "btnDel";
			this.btnDel.Size = new Size(94, 26);
			this.btnDel.TabIndex = 5;
			this.btnDel.Text = "Xoá thông tin";
			this.btnDel.UseVisualStyleBackColor = true;
			this.btnDel.Click += new EventHandler(this.btnDel_Click);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			this.BackColor = Color.White;
			base.ClientSize = new Size(900, 600);
			base.Controls.Add(this.dgvProduct);
			base.Controls.Add(this.btnDel);
			base.Controls.Add(this.btnExportToExcel);
			base.Controls.Add(this.btnPrint);
			base.Controls.Add(this.btnUpdate);
			base.Controls.Add(this.label1);
			base.Controls.Add(this.btnAdd);
			base.Controls.Add(this.btnClose);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmBookSideEffects";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "SỔ THEO DÕI TÁC DỤNG PHỤ CỦA THUỐC";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.frmInput_Load);
			base.KeyDown += new KeyEventHandler(this.frmInput_KeyDown);
			((ISupportInitialize)this.dgvProduct).EndInit();
			base.ResumeLayout(false);
		}
	}
}
